﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace MLY
{
    public partial class PageEvent : Bll.BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            throw (new ArgumentNullException());

        }
    

        public void Page_Error(object sender,EventArgs e)
        {
	    Exception objErr = Server.GetLastError().GetBaseException();
	    string err =	"<b>Error Caught in Page_Error event</b><hr><br>" + 
			    "<br><b>Error in: </b>" + Request.Url.ToString() +
			    "<br><b>Error Message: </b>" + objErr.Message.ToString()+
			    "<br><b>Stack Trace:</b><br>" + 
	                      objErr.StackTrace.ToString();
	    Response.Write(err.ToString());
	    Server.ClearError();
        }
    }

}
